package com.shopping.cart.entity;

/**
 * 商品类，包含商品的具体信息
 *
 * @author qxf101
 * @since 2021-05-10
 */
public class Product {
    /**
     * 商品名称
     */
    private String productName;
    /**
     * 商品数量
     */
    private int productNum;
    /**
     * 商品价格
     */
    private float productPrice;
    /**
     * 商品类型
     */
    private String productType;

    /**
     * 促销比例
     */
    private float promotion;

    public Product() {
    }

    public Product(String productName, int productNum, float productPrice, String productType, float promotion) {
        this.productName = productName;
        this.productNum = productNum;
        this.productPrice = productPrice;
        this.productType = productType;
        this.promotion = promotion;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public int getProductNum() {
        return productNum;
    }

    public void setProductNum(int productNum) {
        this.productNum = productNum;
    }

    public float getProductPrice() {
        return productPrice;
    }

    public void setProductPrice(float productPrice) {
        this.productPrice = productPrice;
    }

    public String getProductType() {
        return productType;
    }

    public void setProductType(String productType) {
        this.productType = productType;
    }

    public float getPromotion() {
        return promotion;
    }

    public void setPromotion(float promotion) {
        this.promotion = promotion;
    }
}

